package com.zhong.gang.applib.utils.permission;

import android.app.Activity;

import androidx.fragment.app.Fragment;

import com.yanzhenjie.permission.Permission;
import com.yanzhenjie.permission.PermissionListener;

/**
 * 获取定位权限
 * */
public  class PermissionLocation extends PermissionBase {
    public static final   int PERMISSION_CODE=1001;
    public PermissionLocation(Activity activity, PermissionListener permissionListener){
        super(activity,permissionListener);
    }
    public PermissionLocation(Fragment fragment, PermissionListener permissionListener){
        super(fragment,permissionListener);
    }
    public  String[] getPermissions(){
        return Permission.LOCATION;
    }

    @Override
    public int getPermissCode() {
        return PERMISSION_CODE;
    }

}
